/*
 * @Author: cgl
 * @Date: 2023-08-03 09:18:47
 * @LastEditors: cgl
 * @LastEditTime: 2023-08-03 09:27:52
 * @FilePath: \public-health-emergencies-fed:\radiation-hygiene-fe\src\api\index\index.js
 * @Description:
 *
 * Copyright (c) 2023 by cgl/微盛信息产业有限公司, All Rights Reserved.
 */
import request from '@/utils/request'

// 查询当天首页关键指标
export function homeCount() {
  return request({
    url: '/basic/home/count',
    method: 'get',
  })
}

// 首页通知列表
export function homeList(params) {
  return request({
    url: '/system/notice/home/list',
    method: 'get',
    params,
  })
}

// 设置成已读状态
export function userHomeState(noticeId) {
  return request({
    url: '/system/notice/user/home/state/' + noticeId,
    method: 'get'
  })
}

// 设置成已下载状态
export function userHomeDownState(noticeId) {
  return request({
    url: '/system/notice/user/home/downState/' + noticeId,
    method: 'get',
  })
}

// 仪器证书即将到期预警
export function warningEquipment() {
  return request({
    url: '/warning/equipment',
    method: 'get',
  })
}
// 超时未寄回预警
export function warningDosageTimeout() {
  return request({
    url: '/warning/dosageTimeout',
    method: 'get',
  })
}
// 未寄回人员详细信息
export function dosageTimeoutInfo(dosimeterId) {
  return request({
    url: `/warning/dosageTimeoutInfo/${dosimeterId}`,
    method: 'get',
  })
}
// 合同即将到期预警时间(天)
export function agreementTip() {
  return request({
    url: `/warning/agreementTip`,
    method: 'get',
  })
}

// 外照射任务与设备任务结合
export function getBacklog(params) {
  return request({
    url: `/basic/home/backlog`,
    method: 'get',
    params
  })
}

// 开票预警列表
export function invoiceTipList() {
  return request({
    url: `/system/invoiceApplyWarn/earlyWarnPage`,
    method: 'get',
  })
}
